/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ui;

/**
 *
 * @author tho.hoang
 */
public class Padding {

    private int top, right, bottom, left;

    public Padding() {
        this.top = 0;
        this.right = 0;
        this.bottom = 0;
        this.left = 0;
    }

    public Padding(int padding) {
        this.top = padding;
        this.right = padding;
        this.bottom = padding;
        this.left = padding;
    }

    public Padding(int left, int top) {
        this.top = top;
        this.right = left;
        this.bottom = top;
        this.left = left;
    }

    public Padding(int top, int right, int bottom, int left) {
        this.top = top;
        this.right = right;
        this.bottom = bottom;
        this.left = left;
    }

    public int getBottom() {
        return bottom;
    }

    public void setBottom(int bottom) {
        this.bottom = bottom;
    }

    public int getLeft() {
        return left;
    }

    public void setLeft(int left) {
        this.left = left;
    }

    public int getRight() {
        return right;
    }

    public void setRight(int right) {
        this.right = right;
    }

    public int getTop() {
        return top;
    }

    public void setTop(int top) {
        this.top = top;
    }

    public int getLeftAndRight() {
        return left + right;
    }

    public int getTopAndBottom() {
        return top + bottom;
    }
}
